package xin.marcher.module.diplomacy.converter;


import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;
import xin.marcher.module.diplomacy.domain.bo.ItemInfoBO;
import xin.marcher.module.diplomacy.domain.entity.ItemInfoDO;

/**
 * item相关对象克隆
 *
 * 
 */
@Mapper(componentModel = "spring")
public interface ItemConverter {
    /**
     * 对象克隆
     *
     * @param itemInfoDO
     * @return
     */
    @Mappings({
            @Mapping(target = "lastCategoryId", source = "categoryId"),
    })
    ItemInfoBO converterBO(ItemInfoDO itemInfoDO);
}
